home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / pov3demo / anim / scurve1 / pov / scurve
Text File  |  1996-07-04  |  761b  |  36 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dan Farmer
  3. // Smooth camera motion demonstration using SCurve function
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9.  
  10. #declare T = clock
  11.  
  12. // This S-Curve function gives a nice fade-in/fade-out blend
  13. #declare SCurve = (T*T) * (3-(2*T))
  14.  
  15. camera {
  16.     location <-2.0, 1.5, -4.5>
  17.     right x*1.3333
  18.     angle 70
  19.     look_at <-0.75, -0.5, 0>
  20. }
  21.  
  22. light_source { <20, 20, -25> rgb 1 }
  23. plane { y, 0  pigment { Plum }}
  24.  
  25. sphere { <1.75, 0.4, 0>, 0.4
  26.     pigment { MandarinOrange }
  27.     finish { specular 1 roughness 0.015 }
  28.     rotate y * (360*SCurve)
  29. }
  30.  
  31. sphere { <-1.75, 0.4, -4.5+ (15*SCurve)>, 0.4
  32.     pigment { LimeGreen }
  33.     finish { specular 0.3 roughness 0.05 }
  34. }
  35.  
  36.